OracleSessionlessTransactionOptions(int, OracleSessionlessTransactionStartBehavior, OracleSessionlessTransactionStartBehavior, bool)

This constructor instantiates a new instance of the OracleSessionlessTransactionOptions class with the provided transaction options.

Declaration

// C#
public OracleSessionlessTransactionOptions(int timeout, 
OracleSessionlessTransactionStartBehavior startBehavior, 
OracleSessionlessTransactionStartBehavior resumeBehavior, 
bool suspendAfterExecution);

Parameters

  • timeout : time, in seconds, to wait for a transaction to become active after it is detached or suspended. If a non-active sessionless transaction is not resumed, committed, or rolled back within the timeout period, it is aborted. The timeout value must be set greater than 0.

  • startBehavior : determines if the sessionless transaction should start immediately in OracleConnection.BeginSessionlessTransaction() or upon an OracleCommand SQL execution.

  • resumeBehavior : determines if the sessionless transaction should resume immediately in OracleConnection.ResumeSessionlessTransaction() or upon an OracleCommand SQL execution.

  • suspendAfterExecution : determines if the active sessionless transaction should be suspended after an OracleCommand SQL execution.

Exceptions

ArgumentOutOfRangeException - specified timeout is equal or smaller than zero.